<?php /* Smarty version 2.6.18, created on 2013-05-28 20:01:47
         compiled from modules/reg.tpl */ ?>
<div class="logoReg">
	<img src="images/txtBlack.png">
</div>

<?php if ($this->_tpl_vars['return'] != '1'): ?>
	<div class="errorLogin" style="color:black;">
		Para continuar con tu pedido...
	</div>
<?php endif; ?>

<div style="color:green;font-size:1.2em" class="success">
	<?php echo $this->_tpl_vars['success']; ?>

</div>

<?php if ($this->_tpl_vars['reg'] == '0'): ?>
	<div id="login" style="<?php echo $this->_tpl_vars['hide_login']; ?>
">
		<div align="center">
			
			<div class="registro"> 	
				
				<div class="errorLogin">				
					<fb:login-button registration-url="http://www.delivery351.com/index.php?act=registroFacebook" on-login="recargar();" />
					Entrar con Facebook
				</div>			
			 
			 	
			 	<form action="?act=reg" method="POST" class="form-4" id="regForm">
			 		<?php if ($this->_tpl_vars['return'] != '1'): ?>
			 			<input type="hidden" name="return" value="<?php echo $this->_tpl_vars['return']; ?>
" />
			 		<?php endif; ?>
			 		
			 		<p>
        				<input type="text" name="email" placeholder="Email" required />
    				</p>
    				
    				<p>
        				<label for="password">Password</label>
        				<input type="password" name='password' placeholder="Password" required /> 
    				</p>
 
    				<p>
       				<input type="submit" name="action" value="<?php echo $this->_tpl_vars['lang']['login']; ?>
"  style="background: red;color:white"/>
    				</p>       
				</form>	
					
			</div>
			
			<?php if ($this->_tpl_vars['return'] != '1'): ?>
				<div class="pieReg">
					Si aún no tenés cuenta
					<a href="?act=reg&reg=1&return=<?php echo $this->_tpl_vars['return']; ?>
">
						click aquí
					</a>
				</div>
			<?php endif; ?>			
			
		</div>
	</div>
	
	
	
	
	<div id="reg" style="<?php echo $this->_tpl_vars['hide_register']; ?>
">
		<div align="center">
		   
			<div class="registro">      
			             
				<div class="errorLogin">				
					<fb:login-button registration-url="http://www.delivery351.com/index.php?act=registroFacebook" on-login="recargar();" />
					Entrar con Facebook
				</div>	
				
				<form action="?act=reg" method="post" class="form-4" id="regForm">
					<?php if ($this->_tpl_vars['return'] != '1'): ?>
			 			<input type="hidden" name="return" value="<?php echo $this->_tpl_vars['return']; ?>
" />
			 		<?php endif; ?>
   
    				<p> 
					    
        				<label for="login">Nombre</label>
						
        				<input type="text" name="name" placeholder="Nombre" required>
    				</p>
					
					<p>
	        			<label for="login">Apellido</label>
        				<input type="text" name="last_name" placeholder="Apellido" required>
    				</p>
	
					<p>
		        		<label for="login">E-mail</label>
        				<input type="text" name="email" placeholder="E-mail" required>
    				</p>

					<p>
	        			<label for="login">Direccion</label>
        				<input type="text" name="address" placeholder="Dirección   Completa" required>
    				</p>
				
					<p>
	        			<label for="login">Teléfono</label>
        				<input type="text" name="phone" placeholder="Teléfono" required>
    				</p>
    			
    				<p>
	        			<label for="password">Password</label>
        				<input type="password" name='password' placeholder="Password" required> 
    				</p>
 
    				<p>
	    				<input type="submit" name="action" value="<?php echo $this->_tpl_vars['lang']['reg_register_button']; ?>
" style="background: red;color:white"/>
    				</p>       
    			</form>
    		</div>			
		</div>
	</div>
	
	
<?php else: ?>

	<form action="?act=reg" method="post">
		<div class="tablaInfoUser">
  			<input type="hidden" name="userid" value="<?php echo $this->_tpl_vars['profile']['id']; ?>
">
  				<h2>
	    			<?php echo $this->_tpl_vars['lang']['reg_profile_label']; ?>
 | <?php echo $this->_tpl_vars['profile']['name']; ?>
, <?php echo $this->_tpl_vars['profile']['last_name']; ?>

  				</h2>
  				
  				<table border="0" cellspacing="0" cellpadding="0">
    				<tr>
      				<td>
      					<?php echo $this->_tpl_vars['lang']['contact_firstname']; ?>

      				</td>
      			
      				<td>
      					<input type="text" name="name" value="<?php echo $this->_tpl_vars['profile']['name']; ?>
" />
      				</td>
    				</tr>
     				
     				<tr>
      				<td>
	      				<?php echo $this->_tpl_vars['lang']['contact_lastname']; ?>

      				</td>
      			
      				<td>
      					<input type="text" name="last_name" value="<?php echo $this->_tpl_vars['profile']['last_name']; ?>
" />
      				</td>
    				</tr>
	    				
    				<tr>
      				<td>
      					<?php echo $this->_tpl_vars['lang']['contact_email']; ?>

      				</td>
      			
      				<td>
	      				<input type="text" name="email"  value="<?php echo $this->_tpl_vars['profile']['email']; ?>
" class="required email" />
      				</td>
    				</tr>
      			
      			<tr>
      				<td>
	      				<?php echo $this->_tpl_vars['lang']['contact_streetaddress']; ?>

      				</td>
      			
      				<td>
	      				<input type="text" name="address"  value="<?php echo $this->_tpl_vars['profile']['address']; ?>
" />
      				</td>
    				</tr>
   				
   				<tr>
     					<td>
     						<?php echo $this->_tpl_vars['lang']['contact_city']; ?>

     					</td>
     				
     					<td>
	     					<input type="text" name="city" value="<?php echo $this->_tpl_vars['profile']['city']; ?>
" disabled="true" />
     					</td>
   				</tr>
   			
   				<tr>
	     				<td>
     						<?php echo $this->_tpl_vars['lang']['contact_dayphone']; ?>

     					</td>
     				
     					<td>
	     					<input type="text" name="phone"   value="<?php echo $this->_tpl_vars['profile']['phone']; ?>
"/>
   	  				</td>
   				</tr>
	   			
   				<tr>
	   				<td colspan="2" align="center">
   						<b>Cambiar contraseña</b>
   					</td>
   				</tr>

   				<tr>
	     				<td>
     						<?php echo $this->_tpl_vars['lang']['reg_current_password_label']; ?>

     					</td>
     				
     					<td>
	     					<input type="password" name="current_password"  value="" />
   	  				</td>
   				</tr>
   			
   				<tr>
	     				<td>
     						<?php echo $this->_tpl_vars['lang']['reg_new_password_label']; ?>

     					</td>
     				
     					<td>
     						<input type="password" name="password"  value="" />
     					</td>
   				</tr>
   			
   				<tr>
	     				<td>
     						<?php echo $this->_tpl_vars['lang']['reg_confirm_password_label']; ?>

     					</td>
     				
     					<td>
	     					<input type="password" name="password_confirm"  value="" />
     					</td>
   				</tr>
	
   				<tr>
	     				<td colspan="2" align="center">
     						<input type="submit" name="action" value="<?php echo $this->_tpl_vars['lang']['reg_save_button']; ?>
"/>
     					</td>
   				</tr>	
   			</table>
   		</div>
	</form>
<?php endif; ?>